package com.vf.admin.miaodong.entity;

import com.vf.admin.common.db.annotation.Column;
import com.vf.admin.common.db.annotation.Table;
import lombok.Data;

import java.io.Serializable;

@Data
@Table(name = "alipay_configs")
public class AlipayConfigs implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(length = 11, name = "id", index = true)
    private Integer id;

    //别名
    @Column(name = "alias")
    private String alias;

    //权重 1-100
    @Column(name = "weight")
    private Integer weight;

    //是否开启1=开，0=关
    @Column(name = "status")
    private Integer status;

    //appId
    @Column(name = "appId")
    private String appId;

    //开发者私钥
    @Column(name = "app_private_key")
    private String appPrivateKey;

    // 支付宝公钥
    @Column(name = "alipay_public_key")
    private String alipayPublicKey;

    //异步回调地址
    @Column(name = "notify_url")
    private String notifyUrl;

    //Vip异步回调地址
    @Column(name = "vip_notify_url")
    private String vipNotifyUrl;

    //支付成功回调地址
    @Column(name = "return_url")
    private String returnUrl;

    //返回格式默认JSON
    @Column(name = "format")
    private String format;//返回格式默认JSON

    //字符集默认UTF-8
    @Column(name = "charset")
    private String charset;

    //网关默认：https://openapi.alipay.com/gateway.do
    @Column(name = "gate_way_url")
    private String gateWayUrl;

    //签名类型默认RSA2
    @Column(name = "sign_type")
    private String signType;

}
